import request from '@/utils/http'

/**
 * 获取自定义模块字段列表
 * @param params
 */
export function getCustomModuleFieldList(params: any) {
	return request.get<Http.BaseResponse>({
		url: '/api/customModuleField',
		params: params
	})
}

/**
 * 创建自定义模块字段
 * @param params
 */
export function createCustomModuleField(params: any) {
	return request.post<Http.BaseResponse>({
		url: '/api/customModuleField',
		params: params,
		showSuccessMessage: true
	})
}

/**
 * 更新自定义模块字段
 * @param params
 */
export function updateCustomModuleField(params: any) {
	return request.put<Http.BaseResponse>({
		url: '/api/customModuleField',
		params: params,
		showSuccessMessage: true
	})
}

/**
 * 删除自定义模块字段
 * @param params
 */
export function deleteCustomModuleField(params: any) {
	return request.del<Http.BaseResponse>({
		url: '/api/customModuleField',
		params: params,
		showSuccessMessage: true
	})
}